package com.interrobang.anime;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;

public class AnimeList implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1713365967369242242L;
	private ArrayList<Anime> animeList;
	
	public AnimeList()
	{
		animeList = new ArrayList<Anime> ();
	}
	
	public boolean contains(Anime anime)
	{
		if(animeList.contains(anime))
			return true;
		else
			return false;
	}
	
	public void add(Anime anime)
	{
		animeList.add(anime);
		Collections.sort(animeList);
	}
	
	public void remove(Anime anime)
	{
		animeList.remove(anime);
	}

	public int size() 
	{
		return animeList.size();
	}

	public Anime get(int i) 
	{
		return animeList.get(i);
	}
}
